/*
 * Package: org.grassfield.common.service
 * FileName: TeamService.java
 *  
 * Created by pandian on Jan 28, 2011
 */
package service;

import java.util.List;

import dao.ITeamDAO;
import bean.Team;


/**
 * The Class TeamService.
 */
public class TeamService implements ITeamService {
	private ITeamDAO teamDAO;

	/**
	 * Sets the team dao.
	 * 
	 * @param teamDAO the new team dao
	 */
	public void setTeamDAO(ITeamDAO teamDAO) {
		this.teamDAO = teamDAO;
	}


	@Override
	public List<Team> list() {
		return this.teamDAO.list();
	}


	@Override
	public Team find(Long id) {
		return this.teamDAO.find(id);
	}

}
